package com.yituo.mjworld.mvc.form;

import com.yituo.mjworld.core.web.core.BaseForm;

import java.util.Map;

/**
 * @author xq
 */
public interface IBaseForm {


  /**
   * 初始化表单
   *
   * @param target       目标BaseForm
   * @param paramFromWeb Request.getParameter()的返回值
   * @return 初始化成功返回真, 初始化失败返回假
   */
  public abstract boolean init(BaseForm target, Map<String, Object> paramFromWeb);


  /**
   * 验证
   *
   * @return
   */
  public abstract boolean validate();

}
